package org.example.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.system.entity.SysResource;

import java.util.List;

/**
 * <p>
 * 菜单管理 Mapper 接口
 * </p>
 *
 * @author LiJunYi
 * @since 2020-05-25
 */
@Mapper
public interface SysResourceDao extends BaseMapper<SysResource> {

    /**
     * 资源由用户id列表
     *
     * @param userId id
     * @return {@link List}<{@link SysResource}>
     */
    List<SysResource> listResourceByUserId(@Param("userId") Long userId);
}
